package com.honglang.module.article.dao;

import java.util.List;

import com.honglang.dao.GenericDaoImpl;
import com.honglang.module.article.entity.ArticleCategories;

public class ArticleCategoriesDaoImpl extends GenericDaoImpl<ArticleCategories,Integer> implements ArticleCategoriesDao{
	
	
	/**
	 * get articleCategories By categoryName;
	 * @param articleCategoryName
	 * @return
	 */
	public ArticleCategories getByCategoryName(String articleCategoryName){
		ArticleCategories articleCategory = new ArticleCategories();
		articleCategory.setCategoryName(articleCategoryName);
		List<ArticleCategories> list = this.getByExample(articleCategory);
		
		return list.size() >0 ? list.get(0):null ;
	}
	
	
	
	
}
